package com.cskaoyan.service;

import com.cskaoyan.bean.MarketCoupon;
import com.cskaoyan.bean.MarketCouponUser;
import com.cskaoyan.bean.common.CommonData;

import java.util.List;

public interface CouponService {
    CommonData<MarketCoupon> querySelective(String name, Short type, Short status, Integer page, Integer limit, String sort, String order);

    void add(MarketCoupon coupon);

    MarketCoupon selectById(Integer id);

    List<MarketCouponUser> selectUserByCouponId(Integer couponId);

    List<MarketCouponUser> selectUserByUserId(Integer userId, Integer couponId);

    List<MarketCouponUser> selectUserByStatus(Integer status, Integer couponId);

    void update(MarketCoupon marketCoupon);

    void deleteByPhysical(Integer id);
}
